package com.shs.sys.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: jxm
 * @Description: 封装信息返回给前端页面
 * @Date: 2020/4/9 13:53
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultObj {

    private Integer code;
    private String msg;

    public static final ResultObj LOGIN_SUCCESS = new ResultObj(Constants.OK,"登录成功");
    public static final ResultObj LOGIN_ERROR_PASS = new ResultObj(Constants.ERROR,"用户名或密码不正确");
    public static final ResultObj LOGIN_CODE = new ResultObj(Constants.ERROR,"登录失败，验证码不正确");

    public static final ResultObj UPDATE_SUCCESS = new ResultObj(Constants.OK,"更新成功");
    public static final ResultObj UPDATE_ERROR = new ResultObj(Constants.ERROR,"更新失败");

    public static final ResultObj ADD_SUCCESS = new ResultObj(Constants.OK,"添加成功");
    public static final ResultObj ADD_ERROR = new ResultObj(Constants.ERROR,"添加失败");

    public static final ResultObj DELETE_SUCCESS = new ResultObj(Constants.OK,"删除成功");
    public static final ResultObj DELETE_ERROR = new ResultObj(Constants.ERROR,"删除失败");

    public static final ResultObj RESET_SUCCESS = new ResultObj(Constants.OK,"重置成功");
    public static final ResultObj RESET_ERROR = new ResultObj(Constants.ERROR,"重置失败");

    public static final ResultObj DISPATCH_SUCCESS = new ResultObj(Constants.OK,"分配成功");
    public static final ResultObj DISPATCH_ERROR = new ResultObj(Constants.ERROR,"分配失败");

    public static final ResultObj OPERATE_SUCCESS = new ResultObj(Constants.OK,"操作成功");
    public static final ResultObj OPERATE_ERROR = new ResultObj(Constants.ERROR,"操作失败");

}
